home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 …ember: Reference Library / Dev.CD Dec 98 RL1.toast / Technical Documentation / develop / Additional Articles / Developing Symbiotic Apps / Symbiotic Samples / Symbiotic server source / flexibled & simpled / Makefile.sample < prev    next >
Encoding:
Makefile  |  1996-12-23  |  947 b   |  39 lines  |  [TEXT/CWIE]

  1. PROGRAMS    = flexibled simpled
  2.  
  3. FOBJS        = fobjs/tridentd.o fobjs/ppcstuff.o fobjs/client.o \
  4.             fobjs/status.o fobjs/handlers.o
  5. SOBJS        = sobjs/tridentd.o sobjs/client.o sobjs/status.o \
  6.             sobjs/handlers.o
  7. LDFLAGS        = -L../../../../export/power/usr/lib
  8. LIBS        = -lae -lat
  9. HEADERS        = tridentd.h debug.h AIXAESuite.h
  10. INCFLAGS    = -I/usr/include/mac
  11.  
  12. DEBUG        = -D_DEBUG=0 -w
  13. OSVERSION    = -DAIX4_x
  14.  
  15. CFLAGS        = ${DEBUG} ${OSVERSION} -D_XOPEN_SOURCE -DSYS_V \
  16.         -qcpluscmt -qextchk -qfullpath -qinfo -qmacpstr -qproto \
  17.         -qlanglvl=ansi -qtune=604
  18.  
  19.  
  20. all : fobjs sobjs $(PROGRAMS)
  21.  
  22. clean:
  23.     rm -f $(PROGRAMS) $(FOBJS) $(SOBJS)
  24.  
  25. flexibled : $(FOBJS)
  26.     $(CC) -o $@ $(LDFLAGS) $(FOBJS) $(LIBS)
  27.  
  28. simpled : $(SOBJS)
  29.     $(CC) -o $@ $(LDFLAGS) $(SOBJS) $(LIBS)
  30.  
  31. fobjs sobjs:
  32.     @test -d $@ || mkdir $@
  33.  
  34. $(FOBJS) : $(@F:.o=.c) $(HEADERS)
  35.     $(CC) -c -o $@ $(CFLAGS) $(INCFLAGS) $(*F).c
  36.  
  37. $(SOBJS) : $(@F:.o=.c) $(HEADERS)
  38.     $(CC) -c -o $@ $(CFLAGS) -DSIMPLIFIED $(INCFLAGS) $(*F).c
  39.